/**
 *
 */
package cn.hg.jfsa.web.route;

import com.jfinal.config.Routes;

import cn.hg.jfsa.web.controller.ContactController;
import cn.hg.jfsa.web.controller.IndexController;
import cn.hg.jfsa.web.interceptor.ColumnLogInterceptor;
import cn.hg.jfsa.web.interceptor.ThemeInterceptor;
import cn.hg.jfsa.web.interceptor.WebAppInterceptor;

/**
 * @author GollyO
 */
public class WebAppRoutes extends Routes {

	/*
	 * (non-Javadoc)
	 * @see com.jfinal.config.Routes#config()
	 */
	@Override
	public void config () {
		this.addInterceptor(new WebAppInterceptor());
		this.addInterceptor(new ThemeInterceptor());
		this.addInterceptor(new ColumnLogInterceptor());
		this.add("/", IndexController.class);
		this.add("/contact", ContactController.class);
	}

}
